package com.web.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.web.mapper.UserMapper;
import com.web.model.User;

@Service
public class UserService {

	@Autowired
	UserMapper userMapper;
	
	public User getUser(int userId){
		return userMapper.selectByPrimaryKey(userId);
	}
}
